package cn.com.guage.dtm.stat.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import cn.com.guage.dtm.common.annotation.Excel;
import cn.com.guage.dtm.common.core.domain.BaseEntity;

/**
 * 覆盖度分析对象 stat_data_cover
 * 
 * @author yangdechao
 * @date 2021-06-22
 */
public class StatDataCover extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 覆盖分析id */
    private Long coverId;

    /** 系统id */
    @Excel(name = "系统id")
    private Long sysId;

    /** 系统代码 */
    @Excel(name = "系统代码")
    private String sysCode;

    /** 系统名称 */
    @Excel(name = "系统名称")
    private String sysName;

    /** 系统类型 */
    @Excel(name = "系统类型")
    private String sysType;

    /** 表级覆盖度 */
    @Excel(name = "表级覆盖度")
    private BigDecimal tableCoverRatio;

    /** 字段级覆盖度 */
    @Excel(name = "字段级覆盖度")
    private BigDecimal fieldCoverRatio;

    /** 分析时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "分析时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date analyzeDatetime;

    public void setCoverId(Long coverId) 
    {
        this.coverId = coverId;
    }

    public Long getCoverId() 
    {
        return coverId;
    }
    public void setSysId(Long sysId) 
    {
        this.sysId = sysId;
    }

    public Long getSysId() 
    {
        return sysId;
    }
    public void setSysCode(String sysCode) 
    {
        this.sysCode = sysCode;
    }

    public String getSysCode() 
    {
        return sysCode;
    }
    public void setSysName(String sysName) 
    {
        this.sysName = sysName;
    }

    public String getSysName() 
    {
        return sysName;
    }
    public void setSysType(String sysType) 
    {
        this.sysType = sysType;
    }

    public String getSysType() 
    {
        return sysType;
    }
    public void setTableCoverRatio(BigDecimal tableCoverRatio) 
    {
        this.tableCoverRatio = tableCoverRatio;
    }

    public BigDecimal getTableCoverRatio() 
    {
        return tableCoverRatio;
    }
    public void setFieldCoverRatio(BigDecimal fieldCoverRatio) 
    {
        this.fieldCoverRatio = fieldCoverRatio;
    }

    public BigDecimal getFieldCoverRatio() 
    {
        return fieldCoverRatio;
    }
    public void setAnalyzeDatetime(Date analyzeDatetime) 
    {
        this.analyzeDatetime = analyzeDatetime;
    }

    public Date getAnalyzeDatetime() 
    {
        return analyzeDatetime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("coverId", getCoverId())
            .append("sysId", getSysId())
            .append("sysCode", getSysCode())
            .append("sysName", getSysName())
            .append("sysType", getSysType())
            .append("tableCoverRatio", getTableCoverRatio())
            .append("fieldCoverRatio", getFieldCoverRatio())
            .append("analyzeDatetime", getAnalyzeDatetime())
            .toString();
    }
}
